#!/bin/sh

PYTHON="/usr/bin/python2.4"
if [ ! -x "$PYTHON" ]
then
	echo "$PYTHON not found."
	PYTHON=`which python`
	PYTHONVER=`$PYTHON -V`
	echo "Fallback to $PYTHON with version $PYTHONVER"
else
	echo "$PYTHON found."
fi

$PYTHON ./migraine.py --migrate-to-prod --config=migraine.ini

exit 0
